package com.heima.xxl.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Slf4j
public class SampleXxlJon {

    @XxlJob("helloJon")
    public void demoJobHandler(){
        log.info("定时任务执行了。。。。。。。。。当前时间:{}",new Date());

    }
}
